﻿using Avalonia.BiliBili.Libs.Extensions;
using Avalonia.Media;
using MedalModel = Bilibili.Model.Live.LiveMedalModel;

namespace Avalonia.BiliBili.Libs.Models
{
    public sealed class LiveMedalModel : MedalModel
    {
        public LiveMedalModel() { }
        public LiveMedalModel(MedalModel model)
        {
            base.code = model.code;
            base.message = model.message;
            base.data = model.data;
            base.medal_id = model.medal_id;
            base.is_lighted = model.is_lighted;
            base.medal_name = model.medal_name;
            base.level = model.level;
            base.uname = model.uname;
            base.intimacy = model.intimacy;
            base.next_intimacy = model.next_intimacy;
            base.status = model.status;
            base.color = model.color;
            base.guard_type = model.guard_type;
            base.buff_msg = model.buff_msg;
        }
        public SolidColorBrush SolidColor => color.ToBrush();
    }
}